/**
 * 
 */
package txt2bib.util;

/**
 * @author v
 *
 */
public enum Grammars {
	ACM (2),
	Elsevier (3),
	Springer (4),
	IEEE (5),
	Auto (1);
	
	private final int value;
	
	Grammars(int value) {
        this.value = value;
    }
    public int value() { 
    	return value; 
    }
    
    public static Grammars getByValue(int val) {
    	for (Grammars gr: values())
    		if (gr.value == val)
    			return gr;
    	
    	return null;
    }
}
